<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<html lang="zh-cn" xml:lang="zh-cn">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="修改GaussDB(DWS)配置文件">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="DWS_00083">
  <meta name="DC.Language" content="zh-cn">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>修改GaussDB(DWS)配置文件</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="DWS_00083"></a><a name="DWS_00083"></a>
  <h1 class="topictitle1">修改GaussDB(DWS)配置文件</h1>
  <div>
   <p>当ProtectAgent安装到GaussDB(DWS)节点时，需要修改GaussDB(DWS)配置文件，否则备份失败。</p>
   <div class="section">
    <h4 class="sectiontitle">操作步骤</h4>
    <ol>
     <li><span>使用PuTTY，登录GaussDB(DWS)集群的节点。</span></li>
     <li><span>执行以下命令进入配置文件目录。</span><p></p><pre class="screen">cd /opt/DataBackup/ProtectClient/Plugins/GeneralDBPlugin/bin/
applications/dws/</pre> <p></p></li>
     <li><span>执行<strong>vi dws.conf</strong>命令编辑配置文件，相关参数说明如<a href="#DWS_00083__zh-cn_topic_0000001346641964_table196232217593">表1</a>所示。</span><p></p>
      <div class="tablenoborder">
       <a name="DWS_00083__zh-cn_topic_0000001346641964_table196232217593"></a><a name="zh-cn_topic_0000001346641964_table196232217593"></a>
       <table cellpadding="4" cellspacing="0" summary="" id="DWS_00083__zh-cn_topic_0000001346641964_table196232217593" frame="border" border="1" rules="all">
        <caption>
         <b>表1 </b>GaussDB(DWS)配置文件参数
        </caption>
        <colgroup>
         <col style="width:25.03%">
         <col style="width:74.97%">
        </colgroup>
        <thead align="left">
         <tr>
          <th align="left" class="cellrowborder" valign="top" width="25.03%" id="mcps1.3.2.2.3.2.1.2.3.1.1"><p>参数</p></th>
          <th align="left" class="cellrowborder" valign="top" width="74.97%" id="mcps1.3.2.2.3.2.1.2.3.1.2"><p>说明</p></th>
         </tr>
        </thead>
        <tbody>
         <tr>
          <td class="cellrowborder" valign="top" width="25.03%" headers="mcps1.3.2.2.3.2.1.2.3.1.1 "><p>deployType</p></td>
          <td class="cellrowborder" valign="top" width="74.97%" headers="mcps1.3.2.2.3.2.1.2.3.1.2 "><p>GaussDB(DWS)部署的形态。</p>
           <ul>
            <li>0：GaussDB(DWS)集群部署在服务器宿主机。</li>
            <li>1：GaussDB(DWS)集群部署在沙箱中。</li>
           </ul></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="25.03%" headers="mcps1.3.2.2.3.2.1.2.3.1.1 "><p>loginSandboxIp</p></td>
          <td class="cellrowborder" valign="top" width="74.97%" headers="mcps1.3.2.2.3.2.1.2.3.1.2 "><p>沙箱中GaussDB(DWS)部署使用的IP地址（仅适用于GaussDB(DWS)部署于沙箱中的场景）。</p>
           <div class="note">
            <span class="notetitle"> 说明： </span>
            <div class="notebody">
             <p>在部署代理的CN节点上执行<strong>hostname -i</strong> 命令查询IP地址。</p>
            </div>
           </div></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="25.03%" headers="mcps1.3.2.2.3.2.1.2.3.1.1 "><p>sandboxPath</p></td>
          <td class="cellrowborder" valign="top" width="74.97%" headers="mcps1.3.2.2.3.2.1.2.3.1.2 "><p>沙箱在主机中存放的路径（仅适用于GaussDB(DWS)部署于沙箱中的场景）。</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="25.03%" headers="mcps1.3.2.2.3.2.1.2.3.1.1 "><p>authmethod</p></td>
          <td class="cellrowborder" valign="top" width="74.97%" headers="mcps1.3.2.2.3.2.1.2.3.1.2 "><p>客户端认证策略。</p>
           <ul>
            <li>trust：不验证密码。</li>
            <li>reject：拒绝访问。</li>
            <li>md5/sha256/cert：客户端证书认证。</li>
            <li>gss：kerberos认证。</li>
           </ul></td>
         </tr>
        </tbody>
       </table>
      </div> <p></p></li>
    </ol>
    <p></p>
   </div>
  </div>
 </body>
</html>